package com.wu.util;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import java.util.stream.IntStream;

public class ExcelRes {

	public static List<Map<String, String>> getResData(List<List<String>> datas,String[] array) {
		List<Map<String, String>> res = new ArrayList<Map<String, String>>();
		datas.forEach(list -> {
			Map<String, String> map = IntStream.range(0, array.length).boxed().collect(Collectors.toMap( Arrays.asList(array)::get, list::get));
			res.add(map);
		});
		return res;
	}
}
